const changeProps = (props, resData) => {
  return () => {
    const _props = Object.assign({}, resData, typeof props === 'function' ? props() : props)
    return _props
  }
}

export default changeProps
